package com.pjedu.nbmallshop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.Date;

/**
 * (MallIndexConfig)实体类
 *
 * @author 汪洋
 * @since 2022-01-31 11:53:20
 */
@Data
@Builder
public class MallIndexConfig implements Serializable {
    private static final long serialVersionUID = -65981622212547759L;
    /**
     * 首页配置项主键id
     */
    private Long configId;
    /**
     * 显示字符(配置搜索时不可为空，其他可为空)
     */
    private String configName;
    /**
     * 3-(首页)热销商品 4-(首页)新品上线 5-(首页)为你推荐
     */
    private Integer configType;
    /**
     * 商品id 默认为0
     */
    private Long goodsId;
    /**
     * 点击后的跳转地址(默认不跳转)
     */
    private String redirectUrl;
    /**
     * 排序值(字段越大越靠前)
     */
    private Integer configRank;
    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建者id
     */
    private Integer createUser;
    /**
     * 最新修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改者id
     */
    private Integer updateUser;

    @Tolerate
    public MallIndexConfig() {
    }
}

